import { LeftOutline } from "antd-mobile-icons";
import "./Header.css";
import { useNavigate } from "react-router-dom";
function Header(props: any) {
  const navigate = useNavigate();
  const { title } = props;
  return (
    <div>
      <div className="header">
        <LeftOutline onClick={() => navigate(-1)} />
        <span>{title}</span>
      </div>
    </div>
  );
}

export default Header;
